//
// Created by 51165 on 2025/10/19.
//
#include <stdio.h>
#include <windows.h>



int main() {
    setbuf(stdout, NULL);
    char arr1[] = "Hello Yang I Love You";
    int sz = sizeof(arr1) / sizeof(arr1[0])-1;
    char arr2[sz];
    for (int i = 0; i < sz; i++) {
        arr2[i] = '*';
    }

    int left = 0;
    int right = sz -1;

    while (left <= right) {
        arr2[left] = arr1[left];
        arr2[right] = arr1[right];
        left++;
        right--;
        printf("%s\n",arr2);
        //system("cls");
        Sleep(1000);
    }
    printf("%s\n", arr2);
}